/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package console;

import gem.controller.Controller;
import gem.model.core.Department;
import gem.model.core.ScienceDomain;
import gem.model.dao.Common;
import gem.model.dao.DAOFactory;
import java.sql.SQLException;
import java.util.Collection;

/**
 *
 * @author Dusan
 */
public class Main1 {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) throws java.sql.SQLException
    {
        DAOFactory factory = DAOFactory.getDAOFactory(DAOFactory.MYSQL);
        
        Common.defaultDepartment = factory.getDepartmentDAO().findDepartment("");
	Common.defaultScienceDomain = factory.getScienceDomainDAO().findScienceDomain("");
	Common.defaultCourse = factory.getCourseDAO().findCourse("");
        
        Collection< Department > deps = Controller.getInstance().listDepartments();

    }

}
